import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-04-23
 * Time: 21:49
 */
public class Test {
    public static  void rotate(int[] nums, int k) {
        int i=nums.length-1;
        while(k!=0){
            int r=nums[nums.length-1];
            for(int j=nums.length-2;j>=0;j--){
                nums[j+1]=nums[j];
            }
            nums[0]=r;
            k--;
        }
    }
    public static void main(String[] args) {
        int[] nums={1,2,3,4,5,6,7};
        rotate(nums,3);
        System.out.println(Arrays.toString(nums));
        Arrays.sort(nums);
        System.out.println(-4%10);
    }
}
